import request from '@/utils/request'

// 查询魔方管理列表
export function listRubik(query) {
  return request({
    url: '/admin/SPlatform/rubikList',
    method: 'get',
    params: query
  })
}

// 查询魔方管理详细
export function getRubik(rubikId) {
  return request({
    url: '/admin/SPlatform/rubikDetails/rubik/' + rubikId,
    method: 'get'
  })
}

// 新增魔方管理
export function addRubik(data) {
  return request({
    url: '/admin/SPlatform/rubikAdd',
    method: 'post',
    data: data
  })
}

// 修改魔方管理
export function updateRubik(data) {
  return request({
    url: '/admin/SPlatform/rubikEdit',
    method: 'put',
    data: data
  })
}

// 删除魔方管理
export function delRubik(rubikId) {
  return request({
    url: '/admin/SPlatform/rubikDel/rubik/' + rubikId,
    method: 'delete'
  })
}
